package cn.briarbear.myblog.entity.vo;

import cn.briarbear.myblog.entity.table.Tag;

/**
 * 标签视图类
 *
 * @auther Val1ant
 * http://www.val1ant.xin
 * @create 2018-05-03-10:51
 */
public class TagView {
    private Integer id;  //标签id
    private String name;  //标签内容
    private Integer num;  //拥有该标签的文章数量


    public TagView(Tag tag) {

        this.id = tag.getId();
        this.name = tag.getName();
    }

    public TagView(Integer id, String name, Integer num) {
        this.id = id;
        this.name = name;
        this.num = num;
    }

    public TagView() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
